import axios from "axios";
axios.defaults.baseURL='http://www.zhaijizhe.cn:3001'
axios.interceptors.request.use((config:any)=>{
    let userJson=localStorage.getItem('users');
    if(userJson){
        let user=JSON.parse(userJson)
        let token=user.token
        config.headers['Authorization']=token
    }
    return config
})